
import request from "@/utils/request"


export function teacherList(page,size,params) {

  return request({
    url: "/api/education/teacher/list/" + page + "/" + size,
    method: 'get',
    params
  })
}


export function findTeacherById(id) {

  return request({

    url: "/api/education/teacher/find/" + id,
    method: 'get'
  })
}


export function insertTeacher(data) {

  return request({
    url: "/api/education/teacher/add",
    method: 'post',
    data: data
  })
}

export function updateTeacher(data) {

  return request({

    url: "/api/education/teacher/update",
    method: 'put',
    data: data
  })
}


export function deleteTeacher(id) {

  return request({
    url: `/api/education/teacher/${id}`,
    method: 'delete',
  })
}

export  function simpleTeacherList() {

  return request({
    url: '/api/education/teacher/list/simple',
    method: 'get'
  })
}
